#!/bin/bash
resu=1
power=2
max=$1
for (( x=1; x<=max; x++ ))
do
    resu=$(($resu*$power))
    echo "x=$x, resu=$resu "
done

echo $resu
echo $(($resu/60))
